<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" CodeBehind="Compose.aspx.cs" Inherits="UserInterface.PM.Compose" %>
<%@ Register TagPrefix="pm" TagName="Menu" Src="~/PM/Menu.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <pm:Menu ID="Menu" runat="server" />
    
    <div id="private-messages-content">
        <asp:PlaceHolder ID="FormPlaceHolder" runat="server">
            <div id="compose-form-container">
                <table class="detail-table">
                    <tr>
                        <th class="default-column"><asp:Label ID="ReceiverLabel" Text="<%$ Resources: Receiver %>" runat="server" /></th>
                        <td class="alternate-column">
                            <asp:TextBox ID="ReceiverTextBox" runat="server" />
                            <asp:RequiredFieldValidator ID="ReceiverRequiredFieldValidator" Text="<%$ Resources: ReceiverRequired %>" ControlToValidate="ReceiverTextBox" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th class="default-column"><asp:Label ID="SubjectLabel" Text="<%$ Resources: Subject %>" runat="server" /></th>
                        <td class="alternate-column">
                            <asp:TextBox ID="SubjectTextBox" runat="server" />
                            <asp:RequiredFieldValidator ID="SubjectRequiredFieldValidator" Text="<%$ Resources: SubjectRequired %>" ControlToValidate="SubjectTextBox" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th class="default-column"><asp:Label ID="ContentLabel" Text="<%$ Resources: Content %>" runat="server" /></th>
                        <td class="alternate-column">
                            <asp:TextBox ID="ContentTextBox" TextMode="MultiLine" Rows="8" runat="server" />
                            <asp:RequiredFieldValidator ID="ContentRequiredFieldValidator" Text="<%$ Resources: ContentRequired %>" ControlToValidate="ContentTextBox" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="options-column"><asp:Button ID="SendButton" Text="<%$ Resources: Send %>" OnClick="SendButton_Click" runat="server" /></td>
                    </tr>
                </table>
            </div>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="SuccessPlaceHolder" runat="server">
            <div id="success-message">
                <p><%= GetLocalResourceObject("SuccessMessage") %></p>
            </div>
        </asp:PlaceHolder>
    </div>
</asp:Content>